package com.ruoyi.carShopService.service.impl;


import com.ruoyi.carShopService.mapper.OperateStatisticsMapper;
import com.ruoyi.carShopService.service.OperateStatisticsService;
import com.ruoyi.system.api.domain.CarOrders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OperateStatisticsServiceImpl implements OperateStatisticsService {
    @Autowired
    private OperateStatisticsMapper operateStatisticsMapper;
    @Override
    public List<Map<String, Object>> selectSumMoney(CarOrders carOrders) {
        return operateStatisticsMapper.selectSumMoney(carOrders);
    }

    @Override
    public List<Map<String, Object>> selectOrderCount(CarOrders carOrders) {
        return operateStatisticsMapper.selectOrderCount(carOrders);
    }
}
